package org.zxl.springbootdemo.mybatis2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.zxl.springbootdemo.mybatis2.dao.MerchantRecordMapper;
import org.zxl.springbootdemo.mybatis2.dao.mapper.MerchantRecord;

@RestController
public class TestController {
    @Autowired
    private MerchantRecordMapper merchantRecordMapper;

    @GetMapping("/get")
    public MerchantRecord get(@RequestParam String id){
        return  merchantRecordMapper.selectByPrimaryKey(id);
    }
}
